/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.background;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 背景资源管理Entity
 * @author ZC
 * @version 2017-04-20
 */
@XmlRootElement(name="bgcfg")
public class EleSourceBackground extends DataEntity<EleSourceBackground> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 名称
	private String color;		// 背景颜色
	private String bgImage;		// 背景图片
	private String bgGif;

	public EleSourceBackground() {
		super();
	}

	public EleSourceBackground(String id){
		super(id);
	}
	public List<User> users = null;

	@XmlTransient
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}
	@XmlTransient
	@Length(min=0, max=50, message="视频名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@XmlElement(name = "color")
	@Length(min=0, max=255, message="背景颜色长度必须介于 0 和 255 之间")
	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		this.color = color;
	}
	
	@XmlElement(name = "bg_image")
	@Length(min=0, max=255, message="背景图片长度必须介于 0 和 255 之间")
	public String getBgImage() {
		return bgImage;
	}

	public void setBgImage(String bgImage) {
		this.bgImage = bgImage;
	}

	@XmlElement(name = "bg_gif")
	public String getBgGif(){
		return bgGif;
	}

	public void setBgGif(String bgGif){
		this.bgGif = bgGif;
	}
}